package com.cj.simple;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.NumberPicker;

import com.cj.library.widget.utiles.ToastUtile;
import com.cj.library.widget.view.loadingview.RotateBallLodingView;

/**
 * Created by peter on 2016/9/21.
 */

public class LoadingAcitivity extends Activity {

    private RotateBallLodingView lodingView;
    private NumberPicker picker;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loading);
        lodingView = ((RotateBallLodingView) findViewById(R.id.random_ballLodingView));

        picker = (NumberPicker) findViewById(R.id.picker);
        picker.setDisplayedValues(new String[]{"haha","heihei","xixi","jiji","gaga","dd"});
        picker.setMinValue(0);
        picker.setMaxValue(5);
    }

    public void start(View view) {
        lodingView.start();
        ToastUtile.show(this,""+picker.getValue());
    }
}
